import Vue from 'vue';
import App from './App';

// 假设您项目中已使用VueX
import store from './store'
// 引入全局uView
import uView from 'uview-ui';

Vue.prototype.$store = store
Vue.config.productionTip = false;

App.mpType = 'app';

Vue.use(uView);

// 引入uView对小程序分享的mixin封装
let mpShare = require('uview-ui/libs/mixin/mpShare.js');
Vue.mixin(mpShare)

const app = new Vue({
    store,
    ...App
});

// 引入请求封装，将app参数传递到配置中
require('config/request.js')(app)

app.$mount();
